learn how to find the total distance traveled from a position graph